#!/bin/bash
#
# Create an application icon
#

source common-func.bash
isRoot

APPLICATIONS_DIR=/usr/share/applications
EXPECTED_ARGS=1
BADARGS=99

if [ $# -ne $EXPECTED_ARGS ]
then
  echo "Usage: `basename $0` new_launcher"
  exit $BADARGS
fi

LAUNCHER=$1
gnome-desktop-item-edit $APPLICATIONS_DIR/$LAUNCHER.desktop --create-new

echo "$0 done"

